.class Lcom/brixd/niceapp/activity/WebViewActivity$1;
.super Landroid/webkit/WebChromeClient;
.source "WebViewActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/WebViewActivity;->initWidgets()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/WebViewActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 112
    iput-object p1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onProgressChanged(Landroid/webkit/WebView;I)V
    .registers 5
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "newProgress"    # I

    .prologue
    .line 129
    invoke-super {p0, p1, p2}, Landroid/webkit/WebChromeClient;->onProgressChanged(Landroid/webkit/WebView;I)V

    .line 130
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    int-to-float v1, p2

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->setTopProgress(F)V

    .line 131
    return-void
.end method

.method public onReachedMaxAppCacheSize(JJLandroid/webkit/WebStorage$QuotaUpdater;)V
    .registers 9
    .param p1, "spaceNeeded"    # J
    .param p3, "totalUsedQuota"    # J
    .param p5, "quotaUpdater"    # Landroid/webkit/WebStorage$QuotaUpdater;

    .prologue
    .line 124
    const-wide/16 v0, 0x2

    mul-long/2addr v0, p1

    invoke-interface {p5, v0, v1}, Landroid/webkit/WebStorage$QuotaUpdater;->updateQuota(J)V

    .line 125
    return-void
.end method

.method public onReceivedTitle(Landroid/webkit/WebView;Ljava/lang/String;)V
    .registers 4
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "title"    # Ljava/lang/String;

    .prologue
    .line 116
    invoke-super {p0, p1, p2}, Landroid/webkit/WebChromeClient;->onReceivedTitle(Landroid/webkit/WebView;Ljava/lang/String;)V

    .line 117
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    # getter for: Lcom/brixd/niceapp/activity/WebViewActivity;->mTitle:Ljava/lang/String;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$000(Lcom/brixd/niceapp/activity/WebViewActivity;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_14

    .line 118
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-virtual {v0, p2}, Lcom/brixd/niceapp/activity/WebViewActivity;->setTopTitle(Ljava/lang/String;)V

    .line 120
    :cond_14
    return-void
.end method

.method public openFileChooser(Landroid/webkit/ValueCallback;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/ValueCallback",
            "<",
            "Landroid/net/Uri;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 134
    .local p1, "uploadMsg":Landroid/webkit/ValueCallback;, "Landroid/webkit/ValueCallback<Landroid/net/Uri;>;"
    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    # setter for: Lcom/brixd/niceapp/activity/WebViewActivity;->mUploadMessage:Landroid/webkit/ValueCallback;
    invoke-static {v1, p1}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$102(Lcom/brixd/niceapp/activity/WebViewActivity;Landroid/webkit/ValueCallback;)Landroid/webkit/ValueCallback;

    .line 135
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 136
    .local v0, "i":Landroid/content/Intent;
    const-string v1, "android.intent.category.OPENABLE"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 137
    const-string v1, "image/*"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 138
    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity$1;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    const v3, 0x7f0c00ea

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/WebViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v2

    # getter for: Lcom/brixd/niceapp/activity/WebViewActivity;->FILECHOOSER_RESULTCODE:I
    invoke-static {}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$200()I

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/brixd/niceapp/activity/WebViewActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 139
    return-void
.end method

.method public openFileChooser(Landroid/webkit/ValueCallback;Ljava/lang/String;)V
    .registers 3
    .param p2, "acceptType"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/ValueCallback",
            "<",
            "Landroid/net/Uri;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .prologue
    .line 142
    .local p1, "uploadMsg":Landroid/webkit/ValueCallback;, "Landroid/webkit/ValueCallback<Landroid/net/Uri;>;"
    invoke-virtual {p0, p1}, Lcom/brixd/niceapp/activity/WebViewActivity$1;->openFileChooser(Landroid/webkit/ValueCallback;)V

    .line 143
    return-void
.end method

.method public openFileChooser(Landroid/webkit/ValueCallback;Ljava/lang/String;Ljava/lang/String;)V
    .registers 4
    .param p2, "acceptType"    # Ljava/lang/String;
    .param p3, "capture"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/ValueCallback",
            "<",
            "Landroid/net/Uri;",
            ">;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .prologue
    .line 146
    .local p1, "uploadMsg":Landroid/webkit/ValueCallback;, "Landroid/webkit/ValueCallback<Landroid/net/Uri;>;"
    invoke-virtual {p0, p1}, Lcom/brixd/niceapp/activity/WebViewActivity$1;->openFileChooser(Landroid/webkit/ValueCallback;)V

    .line 147
    return-void
.end method
